package com.glela.platform.model.response;

import com.glela.platform.model.UserPromotion;

public class ResponseUserPromotion {

	private int walletTicketId;// 优惠券ID
	private int type; // 细则类型(1.妆币（现金币） 2.现金券 3.品牌券.4.预售券 5.商品券6达人激活码)
	private String promotionDetailName;// 优惠劵名称
	private int limited;// 限制额度，多少可用
	private int isDiscount;// 是否折扣 0否（减免金额） 1是（折扣率）
	private int amount;// 减金额 is_discount 为0 必输
	private int discount;// 折扣率 is_discount 为1 必输
	private String effectiveTime;// 生效时间
	private String expirationTime;// 过期时间
	
	public ResponseUserPromotion() {
		
	}
	
	public ResponseUserPromotion(UserPromotion userPromotion) {
		this.walletTicketId = userPromotion.getId();
		this.type = userPromotion.getType();
		this.limited = userPromotion.getLimited();
		this.isDiscount = userPromotion.getIsDiscount();
		this.amount = userPromotion.getAmount();
		this.discount = userPromotion.getDiscount();
		this.effectiveTime = userPromotion.getEffectiveTime();
		this.expirationTime = userPromotion.getExpirationTime();
	}

	public int getWalletTicketId() {
		return walletTicketId;
	}

	public void setWalletTicketId(int walletTicketId) {
		this.walletTicketId = walletTicketId;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getPromotionDetailName() {
		return promotionDetailName;
	}

	public void setPromotionDetailName(String promotionDetailName) {
		this.promotionDetailName = promotionDetailName;
	}

	public int getLimited() {
		return limited;
	}

	public void setLimited(int limited) {
		this.limited = limited;
	}

	public int getIsDiscount() {
		return isDiscount;
	}

	public void setIsDiscount(int isDiscount) {
		this.isDiscount = isDiscount;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}

	public int getDiscount() {
		return discount;
	}

	public void setDiscount(int discount) {
		this.discount = discount;
	}

	public String getEffectiveTime() {
		return effectiveTime;
	}

	public void setEffectiveTime(String effectiveTime) {
		this.effectiveTime = effectiveTime;
	}

	public String getExpirationTime() {
		return expirationTime;
	}

	public void setExpirationTime(String expirationTime) {
		this.expirationTime = expirationTime;
	}
}
